package com.ala4.oxcafe.boot.dto;

import com.ala4.oxcafe.common.utils.object.ObjectUtil;
import lombok.Data;

/**
 * @author PING
 * @date 2025/8/15 20:07
 */
@Data
public class WeUserOpenDTO {

    private String openId;
    private String unionId;
    private String sessionKey;

    public WeUserOpenDTO(Object openId, Object unionId, Object sessionKey) {
        this.openId = String.valueOf(openId);
        this.unionId = ObjectUtil.isNull(unionId) ? null : String.valueOf(unionId);
        this.sessionKey = String.valueOf(sessionKey);
    }
}
